package digui;
//5的阶乘
public class Test02 {
    public static void main(String[] args) {
        System.out.println(j(5));
    }
    public static int j( int i) {
        if (i == 1) {
            return i;
        } else {
            return i * j(i - 1);
        }
    }
}
